package com.qst.rongxiaotong.service;

import com.github.pagehelper.PageInfo;
import com.qst.rongxiaotong.pojo.DTO.UserDTO;
import com.qst.rongxiaotong.pojo.MyPurchase;
import com.qst.rongxiaotong.pojo.Order;
import com.qst.rongxiaotong.pojo.Purchase;
import com.qst.rongxiaotong.pojo.User;

import java.util.List;

/**
 * @author Ww
 * @version v1.0
 * @interfaceName UserService
 * @description
 * @date 2024/10/25 15:52
 **/
public interface OrderService {

    PageInfo<Order> selectAll(Integer pageNum);

    PageInfo<Order> selectAllGoods(Integer pageNum);

    PageInfo<Order> selectAllByKeys(String keys, Integer pageNum);

    PageInfo<Order> selectGoodsByKeys(String keys, Integer pageNum);

    Order selectById(Integer id);

    PageInfo<Order> selectByType(String type, Integer pageNum);

    void add(Order order);

    void update(Order order);

    void delete(Integer id);

    PageInfo<Order> selectAllNeeds(Integer pageNum);

    PageInfo<Order> selectNeedsByKeys(String keys, Integer pageNum);

    List<MyPurchase> selectBuys();
}
